package com.newbee.sustainability.web.config;

import com.newbee.sustainability.web.service.IUserBusinessFegnCilent;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * Description：user-business服务fallback实现
 * Date：2019/1/17
 * Time：16:54
 *
 * @author Likailun
 */
@Component
public class FeignUserBusinessFallback implements IUserBusinessFegnCilent {
    @Override
    public String info() {
        return "info from hystrix fallback";
    }

    @Override
    public String save(Map<String, String> user) {
        return "save from hystrix fallback";
    }

    @Override
    public String getUser(String id) {
        return "getUser info from hystrix fallback";
    }
}
